<?php require_once('../../core/import.php');?>
<?php User::Permission('LINK_DELETE'); ?>
<?php
    if(!is_numeric($ID=Functions::UrlArgs('id')))
    {
        exit('信息ID不正确');
    }
    else
    {
        if($Data=DB::GetRowByID('link',$ID))
        {
            DB::CExec('delete from link where ID='.$ID);
        }

        Functions::JsLocation($_SERVER['HTTP_REFERER']);
    }

?>